package com.rc.web.controller;

import com.rc.pojo.vo.memory.MemoryListVO;
import com.rc.web.service.MemoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 *  控制层。
 *
 * @author 27806
 * @since 2024-06-28
 */
@RestController
@RequestMapping("/memory")
@Api(tags = "回忆")
@RequiredArgsConstructor
public class MemoryController {
    private final MemoryService memoryService;
    @GetMapping("/list")
    @ApiOperation("用户查看回忆")
    public List<MemoryListVO> getList(){
        return memoryService.getList();
    }

}
